lib: improve transactions auto-cleanup logic
authorLuca BRUNO <luca.bruno@coreos.com>
Wed, 25 Aug 2021 12:30:21 +0000 (12:30 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Wed, 25 Aug 2021 16:17:52 +0000 (16:17 +0000)
commitc64b4bcebafd06a0cbfc4b8e67fb3e20e99488bb
tree6ce5664e12456085b8160fed5607f14d76ffcb8b
parent30909a28f2aff54b615837a184f53509cbccc381
lib: improve transactions auto-cleanup logic

This fixes some aspects of OstreeRepoAutoTransaction and re-aligns
it with the logic in flatpak. Specifically:
 * link to the underlying repo through refcounting
 * bridge internal errors to warning messages
 * verify the input pointer type

This is a preparation step before exposing this logic as a public API.
src/libostree/ostree-repo-private.h